import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/login",
      component: () => import("../pages/login/Index.vue"),
    },
    {
      path: "/home",
      component: () => import("../pages/home/Index.vue"),
    },
    {
      path: "/echarts",
      component: () => import("../pages/echarts/Index.vue"),
    },
    {
      path: "/:pathMatch(.*)*",
      component: () => import("../pages/notfound/Index.vue"),
    },
  ],
});

export default router;
